package com.vivachek.protocol.converts



/**
 * @Author: YCB
 * @Time: 2022/9/26 18:42
 * @Email: congbin.yuan@vivachek.com
 * @Description: 设置设备时间
 *
 */
private const val COMMAND = 68
private const val EXPAND_CODE = 153
private const val LENGTH = 1
internal class SetTimeConvert : DataConvert(COMMAND, EXPAND_CODE,LENGTH){

    override fun parse(data: List<Int>,origin:List<Int>) {
        if (data.first()==17){
            listener?.setTimeSuccess(true)
        }else{
            listener?.setTimeSuccess(false)
        }
    }
}